package cn.zyzpp.entity.job;

import cn.zyzpp.entity.user.User;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Create by yster@foxmail.com 2018/5/22/022 20:08
 */
@Entity
@Table(name = "user_job")
@IdClass(UserJobMain.class)
public class UserJob implements Serializable {
    @Id
    @Column(name = "u_id")
    private int uid;//用户ID
    @Id
    @Column(name = "j_id")
    private int jid;//帖子ID
    private String state;//求职状态：投递成功，已查看，不合适，应聘成功
    @Temporal(TemporalType.TIMESTAMP)
    private Date date;//求职时间
    @Column(columnDefinition="TEXT", nullable=true)
    private String j_remark;//招聘方评价
    @Column(columnDefinition="TEXT", nullable=true)
    private String u_remark;//用户方评价
    @Transient
    private NewJob newJob;
    @Transient
    private User user;

    public int getUid() {
        return uid;
    }

    public UserJob() {
    }

    public UserJob(int uid, int jid, String state, Date date, String jobClass, String jobComName, String jobWeekDay, String jobMoney, String jobPosition) {
        this.uid = uid;
        this.jid = jid;
        this.state = state;
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getJid() {
        return jid;
    }

    public void setJid(int jid) {
        this.jid = jid;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getJ_remark() {
        return j_remark;
    }

    public void setJ_remark(String j_remark) {
        this.j_remark = j_remark;
    }

    public String getU_remark() {
        return u_remark;
    }

    public void setU_remark(String u_remark) {
        this.u_remark = u_remark;
    }

    public NewJob getNewJob() {
        return newJob;
    }

    public void setNewJob(NewJob newJob) {
        this.newJob = newJob;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
